package com.xmx.user.service;

import com.xmx.user.mapper.UserMapper;
import com.xmx.user.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author Xumx
 * @Date 2021/4/9 15:38
 * @Version 1.0
 */
@Service
public class UserService {

    @Autowired
    private UserMapper userMapper;

    /*
    *   根据主键查询用户
    * */
    public User queryById(Long id){
        return userMapper.selectByPrimaryKey(id);
    }
}
